cmake_minimum_required(VERSION 2.8)
project(dsst)

find_package(OpenCV REQUIRED)


if(NOT WIN32)
ADD_DEFINITIONS("-std=c++11 -O3")
endif(NOT WIN32)

include_directories(src) 
FILE(GLOB_RECURSE sourcefiles "src/*.cpp")
add_executable( ${PROJECT_NAME} ${sourcefiles} 
runtracker-IMG.cpp
)



message("xxxxxxxxx")
message(${OpenCV_LIBS})
target_link_libraries( ${PROJECT_NAME}
/usr/local/lib/libopencv_videostab.so
/usr/local/lib/libopencv_videoio.so
/usr/local/lib/libopencv_video.so
/usr/local/lib/libopencv_superres.so
/usr/local/lib/libopencv_stitching.so
/usr/local/lib/libopencv_shape.so
/usr/local/lib/libopencv_photo.so
/usr/local/lib/libopencv_objdetect.so
/usr/local/lib/libopencv_ml.so
/usr/local/lib/libopencv_imgproc.so
/usr/local/lib/libopencv_imgcodecs.so
/usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_flann.so
/usr/local/lib/libopencv_features2d.so
/usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_calib3d.so 
# ${OpenCV_LIBS}
)

SET(CMAKE_BUILD_TYPE "Debug")  
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb") 
# IF(CMAKE_COMPILER_IS_GNUCC)
#     set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
#     set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
#     set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O3")
# ENDIF(CMAKE_COMPILER_IS_GNUCC)


